//
//  RecFirTableViewCell.m
//  A段项目
//
//  Created by dlios on 15/7/11.
//  Copyright (c) 2015年 dlios. All rights reserved.
//

#import "RecFirTableViewCell.h"

#define width self.frame.size.width
#define heigh self.frame.size.height


@implementation RecFirTableViewCell

- (void)dealloc
{
    [_title release];
    [_show release];
    [_sec release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;

        self.show = [[UIImageView alloc] initWithFrame:CGRectMake(0, 15, heigh + 50,  heigh + 25)];
        self.title = [[UILabel alloc] initWithFrame:CGRectMake(heigh + 60, 10, width - width / 4, 50)];
        self.title.numberOfLines = 0;
        self.date = [[UILabel alloc] initWithFrame:CGRectMake(_title.frame.origin.x, _title.frame.origin.y + _title.frame.size.height, 100, 15)];
        _date.textColor = [UIColor grayColor];
        _date.font = [UIFont systemFontOfSize:12];
        
        self.sec = [[UILabel alloc] initWithFrame:CGRectMake(heigh + 60, 80, 100, 10)];
        _sec.font = [UIFont systemFontOfSize:12];
//        _sec.textColor = [UIColor grayColor];
        
        UIImageView *ima = [[UIImageView alloc] initWithFrame:CGRectMake(width, _sec.frame.origin.y - 20, 20, 20)];
        ima.image = [UIImage imageNamed:@"14.png"];
        [self addSubview:ima];
        [ima release];

        self.content = [[UILabel alloc] initWithFrame:CGRectMake(ima.frame.origin.x + 20, ima.frame.origin.y, 50, 20)];
        _content.textColor = [UIColor grayColor];
        _content.font = [UIFont systemFontOfSize:12];
        

        [self.contentView addSubview:_show];
        [self.contentView addSubview:_title];
        [self.contentView addSubview:_date];
        [self.contentView addSubview:_sec];
        [self.contentView addSubview:_content];
        
        
        [_show release];
        [_title release];
        [_date release];
        [_sec release];
        [_content release];
    }
    return self;
}



@end
